Date & Time =========== ---- TDateTime.Create ---------------- ``` function TDateTime.Create(AYear, AMonth, ADay, AHour, AMinute, ASecond, AMillisecond: Integer): TDateTime; static; ``` ---- TDateTime.Create ---------------- ``` function TDateTime.Create(AYear, AMonth, ADay: Integer): TDateTime; static; ``` Creates just the date part. ---- TDateTime.Create ---------------- ``` function TDateTime.Create(AHour, AMin, ASecond, AMillisecond: Integer): TDateTime; static; ``` Creates just the time part. ---- TDateTime.CreateFromUnix ------------------------ ``` function TDateTime.CreateFromUnix(UnixTime: Int64): TDateTime; static; ``` ---- TDateTime.CreateFromString -------------------------- ``` function TDateTime.CreateFromString(Value: String): TDateTime; static; ``` ---- TDateTime.CreateFromString -------------------------- ``` function TDateTime.CreateFromString(Fmt, Value: String): TDateTime; static; ``` ---- TDateTime.ToUnix ---------------- ``` function TDateTime.ToUnix(IsUTC: Boolean = True): Int64; ``` ---- TDateTime.ToString ------------------ ``` function TDateTime.ToString(Fmt: String): String; ``` ---- TDateTime.ToString ------------------ ``` function TDateTime.ToString: String; ``` ---- TDateTime.AddYears ------------------ ``` function TDateTime.AddYears(Amount: Integer = 1): TDateTime; ``` ---- TDateTime.AddMonths ------------------- ``` function TDateTime.AddMonths(Amount: Integer = 1): TDateTime; ``` ---- TDateTime.AddDays ----------------- ``` function TDateTime.AddDays(Amount: Integer = 1): TDateTime; ``` ---- TDateTime.AddHours ------------------ ``` function TDateTime.AddHours(Amount: Int64 = 1): TDateTime; ``` ---- TDateTime.AddMinutes -------------------- ``` function TDateTime.AddMinutes(Amount: Int64 = 1): TDateTime; ``` ---- TDateTime.AddSeconds -------------------- ``` function TDateTime.AddSeconds(Amount: Int64 = 1): TDateTime; ``` ---- TDateTime.AddMilliseconds ------------------------- ``` function TDateTime.AddMilliseconds(Amount: Int64 = 1): TDateTime; ``` ---- TDateTime.YearsBetween ---------------------- ``` function TDateTime.YearsBetween(Other: TDateTime): Integer; ``` ---- TDateTime.MonthsBetween ----------------------- ``` function TDateTime.MonthsBetween(Other: TDateTime): Integer; ``` ---- TDateTime.WeeksBetween ---------------------- ``` function TDateTime.WeeksBetween(Other: TDateTime): Integer; ``` ---- TDateTime.DaysBetween --------------------- ``` function TDateTime.DaysBetween(Other: TDateTime): Integer; ``` ---- TDateTime.HoursBetween ---------------------- ``` function TDateTime.HoursBetween(Other: TDateTime): Int64; ``` ---- TDateTime.MinutesBetween ------------------------ ``` function TDateTime.MinutesBetween(Other: TDateTime): Int64; ``` ---- TDateTime.SecondsBetween ------------------------ ``` function TDateTime.SecondsBetween(Other: TDateTime): Int64; ``` ---- TDateTime.MilliSecondsBetween ----------------------------- ``` function TDateTime.MilliSecondsBetween(Other: TDateTime): Int64; ``` ---- TDateTime.Date -------------- ``` property TDateTime.Date: TDateTime ``` ``` property TDateTime.Date(NewValue: TDateTime) ``` Read or write just the date part. ---- TDateTime.Time -------------- ``` property TDateTime.Time: TDateTime ``` ``` property TDateTime.Time(NewValue: TDateTime) ``` ---- TDateTime.Year -------------- ``` property TDateTime.Year: Integer ``` ``` property TDateTime.Year(NewValue: Integer) ``` ---- TDateTime.Month -------------- ``` property TDateTime.Month: Integer ``` ``` property TDateTime.Month(NewValue: Integer) ``` ---- TDateTime.Day -------------- ``` property TDateTime.Day: Integer ``` ``` property TDateTime.Day(NewValue: Integer) ``` ---- TDateTime.Hour -------------- ``` property TDateTime.Hour: Integer ``` ``` property TDateTime.Hour(NewValue: Integer) ``` ---- TDateTime.Minute ---------------- ``` property TDateTime.Minute: Integer ``` ``` property TDateTime.Minute(NewValue: Integer) ``` ---- TDateTime.Second ---------------- ``` property TDateTime.Second: Integer ``` ``` property TDateTime.Second(NewValue: Integer) ``` ---- TDateTime.Millisecond --------------------- ``` property TDateTime.Millisecond: Integer ``` ``` property TDateTime.Millisecond(NewValue: Integer) ``` ---- Now --- ``` function Now: TDateTime; ``` ---- NowUTC ------ ``` function NowUTC: TDateTime; ``` ---- UnixTime -------- ``` function UnixTime: Int64; ``` ---- LocalTimeOffset --------------- ``` function LocalTimeOffset: Integer; ``` Returns the local timezone offset in minutes. This is the difference between UTC time and local time. ---- PreciseSleep ------------ ``` procedure PreciseSleep(Milliseconds: UInt32); ``` ---- MillisecondsToTime ------------------ ``` function MillisecondsToTime(Time: UInt64; out Days, Hours, Mins, Secs: Integer): Integer; ``` ---- MillisecondsToTime ------------------ ``` function MillisecondsToTime(Time: UInt64; out Years, Months, Weeks, Days, Hours, Mins, Secs: Integer): Integer; ``` ---- PerformanceTimer ---------------- ``` function PerformanceTimer: Double; ``` ---- FormatMilliseconds ------------------ ``` function FormatMilliseconds(Time: Double; Format: String): String; ``` ---- FormatMilliseconds ------------------ ``` function FormatMilliseconds(Time: Double; TimeSymbols: Boolean = False): String; ```